package thursday;

public class Student {
    private String name;
    private int age;
    private String school;
    private String major;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Student(String name, int age, String school) {
        this.name = name;
        this.age = age;
        this.school = school;
    }
    public Student(String name, int age, String school, String major) {
        this.name = name;
        this.age = age;
        this.school = school;
        this.major = major;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age){
        this.age=age;
    }
    public String getschool(){
        return school;
    }
    public void setSchool(String school){
        this.school=school;
    }
    public String getMajor(){
        return major;
    }
    public void setMajor(String major){
        this.major=major;
    }

    public void show(){
        System.out.println("学生的名字是:"+ name +", 年龄是:"+age + ", 学校是:"+school + ", 专业是:"+major);

    }

}
